
<h2 class="contentTitle">修改密码</h2>

<div class="pageContent">
	
	<form name="form1" action="./MenServlet.do?method=uppwd" method="post" name="form1" onSubmit="return check()" class="pageForm">
		<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>旧密码：</dt>
				<dd>
					<input type="text" name="oldpwd" maxlength="20" class="required" />
				</dd>
			</dl>
			<dl>
				<dt>新密码</dt>
				<dd>
					<input type="text"  name="newpwd" maxlength="20" class="required" />
				</dd>
			</dl>
			<dl>
				<dt>确认密码</dt>
				<dd>
					<input type="text" name="repwd" maxlength="20" class="required" />
				</dd>
			</dl>
			
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>


<script type="text/javascript">
function check()
{
	if(document.form1.oldpwd.value=="")
	{
		alert("请输入旧密码！");
		document.form1.oldpwd.focus();
		return false;
	}
	if(document.form1.newpwd.value=="")
	{
		alert("请输入新密码！");
		document.form1.newpwd.focus();
		return false;
	} 
	if(document.form1.repwd.value=="")
	{
		alert("请确认密码！");
		document.form1.repwd.focus();
		return false;
	}
	if(document.form1.repwd.value!=document.form1.newpwd.value)
	{
		alert("对不起，两次输入的密码不相同，请确认密码！");
		document.form1.repwd.focus();
		return false;
	}
}
</script>
